package com.ruoyi.project.channel.businessCashChange.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 资金变动表 business_cash_change
 * 
 * @author zero
 * @date 2019-05-18
 */
public class BusinessCashChange extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 资金 */
	private Long cashId;
	/**  */
	private Long businessId;
	/**  */
	private String businessName;
	/** 变更原因 */
	private String opType;
	/** 变更金额 */
	private BigDecimal amount;
	/** 支付类型 */
	private String payType;
	/** 支付类型 */
	private String payTypeLabel;

	/** 变更前金额 */
	private BigDecimal preAmount;
	/** 变更后金额 */
	private BigDecimal nextAmount;
	/** 订单编号 */
	private String orderId;

	public void setCashId(Long cashId) 
	{
		this.cashId = cashId;
	}

	public Long getCashId() 
	{
		return cashId;
	}
	public void setBusinessId(Long businessId) 
	{
		this.businessId = businessId;
	}

	public Long getBusinessId() 
	{
		return businessId;
	}
	public void setOpType(String opType) 
	{
		this.opType = opType;
	}

	public String getOpType() 
	{
		return opType;
	}
	public void setAmount(BigDecimal amount) 
	{
		this.amount = amount;
	}

	public BigDecimal getAmount() 
	{
		return amount;
	}
	public void setPayType(String payType) 
	{
		this.payType = payType;
	}

	public String getPayType() 
	{
		return payType;
	}
	public void setPreAmount(BigDecimal preAmount) 
	{
		this.preAmount = preAmount;
	}

	public BigDecimal getPreAmount() 
	{
		return preAmount;
	}
	public void setNextAmount(BigDecimal nextAmount) 
	{
		this.nextAmount = nextAmount;
	}

	public BigDecimal getNextAmount() 
	{
		return nextAmount;
	}
	public void setOrderId(String orderId) 
	{
		this.orderId = orderId;
	}

	public String getOrderId() 
	{
		return orderId;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cashId", getCashId())
            .append("businessId", getBusinessId())
            .append("opType", getOpType())
            .append("amount", getAmount())
            .append("payType", getPayType())
            .append("preAmount", getPreAmount())
            .append("nextAmount", getNextAmount())
            .append("createTime", getCreateTime())
            .append("remark", getRemark())
            .append("orderId", getOrderId())
            .toString();
    }

	public String getBusinessName() {
		return businessName;
	}

	public void setBusinessName(String businessName) {
		this.businessName = businessName;
	}

	public String getPayTypeLabel() {
		return payTypeLabel;
	}

	public void setPayTypeLabel(String payTypeLabel) {
		this.payTypeLabel = payTypeLabel;
	}
}
